2f5631bfb9de0a7b6be6f30531759a3b5db6dc7b,plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java,TestNGResults,TestNGResults,#Project#TestNGConsoleView#,65
Before Change
toolbarPanel.setLayout(new BorderLayout());
toolbarPanel.add(new ToolbarPanel(console.getConsoleProperties(), this));
animator = new Animator(treeBuilder);
tree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener()
{
public void valueChanged(TreeSelectionEvent e) {
TreePath path = e.getPath();
if (path == null) return;
TestProxy proxy = TestTreeView.getObject(path);
if (proxy == null) return;
if (ScrollToTestSourceAction.isScrollEnabled(TestNGResults.this)) {
OpenSourceUtil.openSourcesFrom(tree, false);
}
if (proxy == structure.getRootElement()) {
console.reset();
} else {
console.setView(proxy.getOutput());
}
}
});
progress.setColor(ColorProgressBar.GREEN);
GuiUtils.replaceJSplitPaneWithIDEASplitter(splitPane);
splitPane.setDividerLocation(0.33);
After Change
toolbarPanel.add(toolbar);
animator = new Animator(treeBuilder);
openSourceListener = new OpenSourceSelectionListener(structure, console);
tree.getSelectionModel().addTreeSelectionListener(openSourceListener);
progress.setColor(ColorProgressBar.GREEN);
splitPane.setDividerLocation(0.33);
GuiUtils.replaceJSplitPaneWithIDEASplitter(splitPane);